package com.xiaoxin.experience.common;

/**
 * @author xiaoxin
 */
public class BusinessException extends RuntimeException
{
    private static final long serialVersionUID = 5601818388152687701L;

    private int error = ErrorCode.ERROR_COMMON_FAIL;

    public BusinessException()
    {
        super();
    }

    public BusinessException(String message)
    {
        super(message);
    }

    public BusinessException(int error, String message)
    {
        super(message);
        this.error = error;
    }

    public int getError()
    {
        return error;
    }
}
